export const formConfig = [
    {
        name: 'scope_id_list',
        type: 'cascader',
        placeholder: '筛选范围',
        options: [],
    },
    {
        name: 'coll_name',
        type: 'input',
        placeholder: '终端名称',
    },
    {
        name: 'number',
        type: 'input',
        placeholder: '终端编号',
    },
]
export const dialogConfig = [
    {
        name: 'coll_name',
        type: 'input',
        placeholder: '采集器名称',
        required: true,
    },
    {
        name: 'sensor_type',
        type: 'select',
        placeholder: '终端类型',
        required: true,
        options: [],
        onChange: () => {},
    },
    {
        name: 'number',
        type: 'input',
        placeholder: '终端编号(port_address)',
        required: true,
    },
    {
        name: 'scope_id_list',
        type: 'cascader',
        placeholder: '所属范围',
        required: true,
        options: [],
        onChange: () => {},
    },
    {
        name: 'waveacq',
        type: 'select',
        placeholder: '采集定义',
        label: '采集定义',
        required: true,
        options: [],
    },
    {
        name: 'wave_t',
        type: 'select_',
        placeholder: '波形间隔',
        label: '波形间隔',
        required: true,
        options: [
            {
                label: '5min',
                value: 60 * 5,
            },
            {
                label: '10min',
                value: 60 * 10,
            },
            {
                label: '20min',
                value: 60 * 20,
            },
            {
                label: '30min',
                value: 60 * 30,
            },
            {
                label: '1h',
                value: 60 * 60,
            },
            {
                label: '2h',
                value: 60 * 60 * 2,
            },
            {
                label: '4h',
                value: 60 * 60 * 4,
            },
            {
                label: '6h',
                value: 60 * 60 * 6,
            },
            {
                label: '12h',
                value: 60 * 60 * 12,
            },
            {
                label: '24h',
                value: 60 * 60 * 24,
            },
        ],
    },
    {
        name: 'l_wave_t',
        type: 'select_',
        placeholder: '长波形间隔',
        label: '长波形间隔',
        required: true,
        options: [
            {
                label: '2h',
                value: 60 * 60 * 2,
            },
            {
                label: '4h',
                value: 60 * 60 * 4,
            },
            {
                label: '6h',
                value: 60 * 60 * 6,
            },
            {
                label: '12h',
                value: 60 * 60 * 12,
            },
            {
                label: '24h',
                value: 60 * 60 * 24,
            },
        ],
    },
    {
        name: 'eig_t',
        type: 'select_',
        placeholder: '特征值上报间隔',
        label: '特征值上报间隔',
        required: true,
        options: [
            {
                label: '不上报',
                value: 0,
            },
            {
                label: '5s',
                value: 5,
            },
            {
                label: '10s',
                value: 10,
            },
            {
                label: '20s',
                value: 20,
            },
            {
                label: '30s',
                value: 30,
            },
            {
                label: '1min',
                value: 60,
            },
            {
                label: '5min',
                value: 5 * 60,
            },
            {
                label: '10min',
                value: 60 * 10,
            },
            {
                label: '30min',
                value: 60 * 30,
            },
        ],
    },
    {
        name: 'speed_thr',
        type: 'input',
        placeholder: '速度阈值(mm/s)',
        label: '速度阈值(mm/s)',
        // required: true,
    },
    {
        name: 'adc_thr',
        type: 'input',
        placeholder: 'adc阈值',
        label: 'adc阈值',
        // required: true,
    },
]
//表格
export const column = [
    {
        label: 'ID',
        name: 'id',
    },

    {
        label: '名称',
        name: 'coll_name',
    },
    {
        label: '终端编号',
        name: 'number',
    },

    {
        label: '终端类型',
        name: 'type_name',
    },

    {
        label: '采集定义',
        name: 'acq_name',
    },
    {
        title: '操作',
        name: 'action',
        width: '220',
        buttons: [],
    },
]
// 处理 菜单组  有线版本
export const tableMenu1 = [
    {
        type: 'primary',
        text: '下发参数',
        icon: 'el-icon-bottom',
        click: null,
    },
    {
        type: 'info',
        text: '重启',
        icon: 'el-icon-refresh-right',
        click: null,
    },
    {
        type: 'primary',
        text: '自检',
        icon: 'el-icon-refresh-left',
        click: null,
    },
]

export const tableMenu2 = [
    {
        type: 'primary',
        text: '下发参数',
        icon: 'el-icon-bottom',
        click: null,
    },
    {
        type: 'info',
        text: '重启',
        icon: 'el-icon-refresh-right',
        click: null,
    },
    {
        type: 'primary',
        text: '自检',
        icon: 'el-icon-refresh-left',
        click: null,
    },
]
export const addForm = {
    id: null,
    coll_name: '',
    waveacq: null,
    sensor_type: null,
    number: null,
    sensors: null,
    wave_t: null,
    l_wave_t: null,
    eig_t: null,
    speed_thr: null,
    adc_thr: null,
    zone_id: null,
    factory_id: null,
    company_id: null,
    group_id: null,
}

export const colors = {
    1: '#259545',
    0: '#E23D30',
}
export const status = {
    1: '正常',
    0: '异常',
}
// 自检记录配置
export const selfinsConfig = [
    {
        title: '系统状态',
        list: [],
    },
    {
        title: '通道状态',
        list: [],
    },
]
